<%-- 
    Document   : autenticado
    Created on : Nov 8, 2011, 8:51:06 PM
    Author     : Jun
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <body><div id="container"><div id="content">
        <%@include file="topo.jsp" %>
        <%@ page import="br.objetos.*, java.util.*" %>
         <%
            UsuarioMetodos um = new UsuarioMetodos();
            if (request.getParameter("inserted") != null) {
                um = (UsuarioMetodos)session.getAttribute("usuario");
        
            }
            session.setAttribute("usuario", um);
        %>
        <table border="0" cellspacing="5" cellpadding="5" width="100%">
            <tr>
                <th>
                    <%if(um.getUsuario().getUsername().equals("admin")){%>
                    <%@include file="abalateral.jsp" %>
                    <%}else{
                    %>
                    <%@include file="abalaterallivre.jsp" %>
                    <%
                    }%>
                </th>
            <tr>
            </tr>
                <th align="left">
                    <h1>Bem Vindo! <%=um.getUsuario().getUsername()%>
                    </h1>
                     
                </th>
            </tr>
        </table>
            
    </div><div id="footer" align="center"><%@include file="footer.jsp" %></div></div></body>
</html>

